package com.digitalchina.lxnsy.sy.peopleAddExp;

import android.webkit.JavascriptInterface;

import com.digitalchina.lxnsy.base.BaseHtmlActivity;

public class MyAdviceActivity extends BaseHtmlActivity {
    private int tag = 0;

    @Override
    protected void loadHtml() {
        webView.addJavascriptObject(new JsApi(), null);
        loadUrl("myAdvice");

        setTitle("我的咨询");
    }

    @Override
    public void rightOnClick(){


    }


    @Override
    public void onResume() {
        super.onResume();
        if (tag > 0) {
            callJsMethod("refresh");
        }
        tag++;

    }


    public class JsApi {


        @JavascriptInterface
        public void replyDetails(Object msg) {
            go(ReplyDetailsActivity.class);

        }

    }
}
